#
# Be sure to run `pod lib lint XTComponentBLE.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'KQChatKit'
  s.version          = '1.0.0'
  s.summary          = '聊天模块'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!11

  s.description      = <<-DESC
#: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://codeup.aliyun.com/kangqiao/kangqiao-ios/KQComponentGroup/KQChatKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhoux' => '351706354@qq.com' }
  s.source           = { :git => 'https://codeup.aliyun.com/kangqiao/kangqiao-ios/KQComponentGroup/KQChatKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

    s.platform = :ios, "9.0"

  # s.source_files = 'KQChatKit/KQChatKit/*.{h,m}' 注：路径是相对于.podspec的路径

  s.source_files = 'KQChatKit/KQChatKit/*.{h,m,swift}'
  s.vendored_libraries = 'KQChatKit/KQChatKit/Chat/ChatUtilites/3rdParty/lame/*.a'
  s.vendored_frameworks = 'KQChatKit/KQChatKit/Framework/WFChatClient.framework','KQChatKit/KQChatKit/Framework/mars.framework'
  
  #s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64 x86_64' }
  #s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64 x86_64' }

  
  # 配置子目录
  
  s.subspec 'Resources' do |ss|
      ss.resources = [
        'KQChatKit/KQChatKit/Resources/**/*.{png,gif}'
      ]
  end
  
#  s.subspec 'Framework' do |ss|
#      ss.resources = [
#        'KQChatKit/KQChatKit/Framework/**/*.{h,m,swift}'
#      ]
#  end
  
  s.subspec 'Chat' do |ss|
       ss.subspec 'Config' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/Config/**/*.{h,m,swift}'

       end
       ss.subspec 'ChatImages' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/ChatImages/**/*.{h,m,swift}'

       end
       
       ss.subspec 'Controller' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/Controller/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/Controller/**/*.{xib,png}']
       end
           
       ss.subspec 'ChatUtilites' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/ChatUtilites/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/ChatUtilites/**/*.{xib,png}']
       end
       
       ss.subspec 'Model' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/Model/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/Model/**/*.{xib,png}']
       end
       
       ss.subspec 'View' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/View/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/View/**/*.{xib,png}']
       end
       
       ss.subspec 'Protocols' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/Protocols/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/Protocols/**/*.{xib,png}']
       end
       
       ss.subspec 'Tool' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/Tool/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/Tool/**/*.{xib,png}']
       end
       ss.subspec 'WFMessage' do |sss|
            sss.source_files = 'KQChatKit/KQChatKit/Chat/WFMessage/**/*.{h,m,swift}'
            sss.resources = ['KQChatKit/KQChatKit/Chat/WFMessage/**/*.{xib,png}']
       end
  end
  
  s.subspec 'Module' do |ss|
      ss.source_files = 'KQChatKit/KQChatKit/Module/**/*.{h,m,swift,modulemap}'
      ss.private_header_files = 'KQChatKit/KQChatKit/Module/KQChatSDK.h'
      ss.preserve_path = 'KQChatKit/KQChatKit/Module/module.modulemap'
      ss.resources = ['KQChatKit/KQChatKit/Module/**/*.{xib,png}']
  end
  # 远程pod路径
  #s.xcconfig = { "SWIFT_INCLUDE_PATHS" => ["$(PODS_ROOT)/Modules/KQChatKit/KQChatKit/KQChatKit/KQLocationManager", "$(PODS_ROOT)/Modules/KQChatKit/KQChatKit/KQChatKit/ModuleMap"]}

  s.xcconfig = {"SWIFT_INCLUDE_PATHS" => ["$(PODS_ROOT)/../KQChatKit/KQChatKit/KQChatKit/Module"]}
#s.xcconfig = {"SWIFT_INCLUDE_PATHS" => ["/Users/kangqiao/Desktop/ChatTest2/KQChatKit/KQChatKit/KQChatKit/Module"]}
  # 配置资源文件
  #s.resources = [
  #  'KQChatKit/KQChatKit/Resources/**/*.{png,gif}'
  #]
  
  
  # s.resource_bundles = {
  #   'ZXSearchBar' => ['ZXSearchBar/SearchBar/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
    s.static_framework = true
    
#    s.dependency 'JMessage','3.8.1'
    s.dependency 'KakaJSON', '1.1.2'
    s.dependency 'KQSearch/SearchBar', '~> 1.0.6'
    s.dependency 'KQEmptyView', '1.0.1'
    s.dependency 'YYText'
    s.dependency 'AFNetworking'
    s.dependency 'KQKSPhotoBrowser', '~> 1.0.2'
    s.dependency 'KQYYWebImageView', '~> 1.0.1'
    s.dependency 'KQPhotoPicker/All', '~> 1.0.7'
    s.dependency 'KQToast/Toast', '~> 1.0.3'
    s.dependency 'KQProgressHUD/All', '~> 1.0.3'
    s.dependency 'KQHBDNavigationBar', '~> 1.0.1'
    s.dependency 'KQGeneric', '~> 0.0.3'
    
end
